import request from "@/utils/request";

// 售后订单 - 订单列表
// type：必传。 1：商家配送  2：门店自提 3：会员服务 
export function getOrderList(query) {
  return request({
    url: "/cms-shop/api/order-refund/list",
    method: "get",
    params:query,
  });
}
// 审核
export function examineOrder(data) {
  
  return request({
    url: `/cms-shop/api/order-refund/audit`,
    method: "put",
    data:data
  });
}
// 导出
export function exportOrder(query) {
  return request({
    url: `/cms-shop/api/order-refund/export`,
    method: "get",
    params: query,
  });
}
// 确认收货
export function comfirmOrder(data) {
  return request({
    url: `/cms-shop/api/order-refund/confirm-and-receipt/${data}`,
    method: "put",
  });
}

// 详情
export function getRefundDetail(query) {
  console.log(query);
  return request({
    url: `/cms-shop/api/order-refund/${query.id}`,
    method: "get",
    params:query,
  });
}
// 品牌订单列表 - 获取快递公司
export function getCompanyList(query) {
  return request({
    url: "/cms-shop/api/order-base/delivery-company-list",
    method: "get",
    params:query,
  });
}
// 查看物流
export function getExpressInfo(query) {
  return request({
    url: "/cms-shop/api/order-base/delivery-query",
    method: "get",
    params: query,
  });
}
